package com.yeqifu.bus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * InnoDB free: 9216 kB
 * </p>
 *
 * 出库实体类
 * @author 艾琦
 * @since 2020-12-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bus_outport")
@ApiModel(value = "Outport对象", description = "Outport对象")
public class Outport implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键，商品出库数据编号
     * */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 供应商ID
     * */
    @ApiModelProperty(value = "供应商ID")
    private Integer providerid;

    /**
     * 出库时间
     * */
    @ApiModelProperty(value = "时间")
    private Date outputtime;

    /**
     * 操作业务员名称
     * */
    @ApiModelProperty(value = "业务员")
    private String operateperson;

    /**
     * 出库数量
     * */
    @ApiModelProperty(value = "数量")
    private Integer number;

    /**
     * 出库备注
     * */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 商品ID
     * */
    @ApiModelProperty(value = "商品ID")
    private Integer goodsid;

    /**
     * 供应商姓名
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "供应商姓名")
    private String providername;

    /**
     * 商品名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "商品名称")
    private String goodsname;

    /**
     * 商品规格
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "规格")
    private String size;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    /**
     * 商品类型
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "商品类型")
    private String type;

    /**
     * 订单状态
     * 0：未处理
     * 1：处理中
     * 2：已完成
     * 3：已退回
     * */
    @ApiModelProperty(value = "订单状态")
    private Integer status;

    /**
     * 出库仓库地区ID
     * */
    @ApiModelProperty(value = "仓库地区")
    private Integer wareHousePName;

    /**
     * 出库仓库ID
     * */
    @ApiModelProperty(value = "仓库名称")
    private Integer wareHouseName;

    /**
     * 出库仓库地区名称
     * */
    @ApiModelProperty(value = "仓库地区ID")
    @TableField(exist = false)
    private String wareHousePID;

    /**
     * 出库仓库名称名称
     * */
    @ApiModelProperty(value = "仓库名称ID")
    @TableField(exist = false)
    private String wareHouseID;

    /**
     * 出库超市ID
     * */
    @ApiModelProperty(value = "仓库名称ID")
    private Integer customerId;

    /**
     * 出库超市名称
     * */
    @ApiModelProperty(value = "仓库名称ID")
    @TableField(exist = false)
    private String customerName;
}
